// 定义一些路由
// 每个路由都需要映射到一个组件。
import IndexPage from "../pages/IndexPage.vue";
import TeamPage from "../pages/TeamPage.vue";
import UserPage from "../pages/UserPage.vue";
import SearchPage from "../pages/SearchPage.vue";
import EditUserPage from "../pages/EditUserPage.vue";
import SearchResultPage from "../pages/SearchResultPage.vue";
import ConnectUserPage from "../pages/ConnectUserPage.vue";

const routes = [
    { path: '/', component: IndexPage },
    { path: '/team', component: TeamPage },
    { path: '/user', component: UserPage },
    { path: '/search', component: SearchPage },
    { path: '/user/edit', component: EditUserPage },
    { path: '/user/list', component: SearchResultPage },
    { path: '/user/info', component: ConnectUserPage },
]
export default routes;
